<template>
  <div class="not-found-container">
    <el-result status="404" title="404" sub-title="抱歉，您访问的页面不存在">
      <el-button type="primary" @click="goBack">返回首页</el-button>
    </el-result>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
import { ElResult, ElButton } from "element-plus";

const router = useRouter();

const goBack = () => {
  router.push("/home");
};
</script>

<style scoped>
.not-found-container {
  padding: 20px;
  text-align: center;
}
</style>
